home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Authority.sea / XML Authority / Required / ldapjdk.jar / netscape / ldap / util / LDIFAddContent.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-13  |  926 b   |  30 lines

  1. package netscape.ldap.util;
  2.  
  3. import netscape.ldap.LDAPAttribute;
  4.  
  5. public class LDIFAddContent implements LDIFContent {
  6.    private LDAPAttribute[] m_attrs;
  7.  
  8.    public LDIFAddContent(LDAPAttribute[] var1) {
  9.       this.m_attrs = var1;
  10.    }
  11.  
  12.    public int getType() {
  13.       return 1;
  14.    }
  15.  
  16.    public LDAPAttribute[] getAttributes() {
  17.       return this.m_attrs;
  18.    }
  19.  
  20.    public String toString() {
  21.       String var1 = "";
  22.  
  23.       for(int var2 = 0; var2 < this.m_attrs.length; ++var2) {
  24.          var1 = var1 + this.m_attrs[var2].toString();
  25.       }
  26.  
  27.       return "LDIFAddContent {" + var1 + "}";
  28.    }
  29. }
  30.